﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 命令模式
{
    /// <summary>
    /// 维护命令
    /// </summary>
    public class Invoker
    {
        private BaseCommand _BaseCommand = null; //可以换成多个命令集合

        public Invoker(BaseCommand baseCommand)
        {
            this._BaseCommand = baseCommand;
        }

        public void Excute()
        {
            this._BaseCommand.Excute();
        }
    }
}
